<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>网投彩票代理系统</title>
    <link rel="stylesheet" href="__TEMPLATE__/webfile/css/main.css">
    <link rel="stylesheet" type="text/css" href="__TEMPLATE__/webfile/css/common.css" />
    <link rel="stylesheet" type="text/css" href="__TEMPLATE__/webfile/css/index.css" />
</head>
<script src="__TEMPLATE__/webfile/js/jquery.js"></script>
<body>
<div class="content st1">

    <div class="head w line30 bac1 f14" >
        <span class="span1 colw">代理账号: <span class="span2 coly">{$user}</span></span>
        <span class="span1 colw">下线返点: <span class="span2 coly">{$r.fandian}</span></span>
        <span class="span1 colw">余额: <span class="span2 coly">{$r.je}</span></span>
        <span class="span1 colw">推荐码: <span class="span2 coly">{$r.tjm}</span></span>
        <a href="{:url('Agent/logout')}"><span class="span1 span3 colw line30">退出</span></a>
    </div>

    <div class="title w90" >
       <div class="con1 h  boxs">
           <img src="__ATTACHMENT__/{$logo.logoimg}" alt="" class=" h w110">
       </div>
        <div class="con2 h  line100 f34  colr">
             网投彩票代理系统
        </div>
        <div class="con3 h  f14 boxs times"></div>
    </div>

    <div class="center main usercenter w90"  >
        <div class="user_gamerecord h"  >
            <div class="user_menu left con1 bacg h boxs bacw boright" >
                <ul class=" h  boxs bacw boright w">
                    <h2>会员中心</h2>
                    <li class="iconfont hover"><i class="iconfont"></i><a href="{:url('agent/dai')}" target="right">代理管理</a></li>
                    <li><i class="iconfont "></i><a class="user_goto_finance" href="{:url('agent/drawMoneyRecord')}" target="right">财务中心</a></li>
                    <li><i class="iconfont"></i><a href="{:url('agent/updatePass')}" target="right">修改密码</a></li>
                    <li><i class="iconfont"></i><a href="{:url('agent/message')}" target="right">消息中心</a></li>
                </ul>
            </div>
            <div class="right h w">
                <iframe scrolling="auto" rameborder="0" src="{:url('agent/dai')}" name="right" width="100%" height="100%"></iframe>
            </div>
        </div>
    </div>

</div>
</body>
<script>
    $(document).ready(function () {
     // 左侧点击效果
     $('.center .user_gamerecord .user_menu ul li ').each(function () {
        $(this).click(function () {
            $('.center .user_gamerecord .user_menu ul li').removeClass('hover');
            $(this).addClass('hover');
        })
     })

    //时间函数：
     setInterval(function(){
            fnDate();
        },1000);
    //js 获取当前时间
    function fnDate(){
        var date=new Date();
        var year=date.getFullYear();//当前年份
        var month=date.getMonth();//当前月份
        var data=date.getDate();//天
        var hours=date.getHours();//小时
        var minute=date.getMinutes();//分
        var second=date.getSeconds();//秒
        var time=year+"-"+fnW((month+1))+"-"+fnW(data)+" "+fnW(hours)+":"+fnW(minute)+":"+fnW(second);
        $('.times').get(0).innerText="北京时间："+time;
    }
    //补位 当某个字段不是两位数时补0
    function fnW(str){
        var num;
        str>9?num=str:num="0"+str;
        return num;
    }


    })
</script>
</html>